package org.nimitz.test.resteasy;

import io.swagger.annotations.Api;
import org.springframework.stereotype.Component;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

/**
 * Created by nimtz on 2017/5/2.
 */
@Path("/hello")
@Api
@Component
public class HelloWorld {
    @GET
    @Produces("application/json")
    public String hi() {
        return "Hello,World!";
    }
}
